home *** CD-ROM | disk | FTP | other *** search
/ Champak 86 / (Vol 86) My Disc.iso / Games / pet_1112.swf / scripts / __Packages / caurina / transitions / TweenListObj.as < prev   
Text File  |  2009-04-14  |  5KB  |  149 lines

  1. class caurina.transitions.TweenListObj
  2. {
  3.    function TweenListObj(p_scope, p_timeStart, p_timeComplete, p_useFrames, p_transition)
  4.    {
  5.       this.scope = p_scope;
  6.       this.timeStart = p_timeStart;
  7.       this.timeComplete = p_timeComplete;
  8.       this.useFrames = p_useFrames;
  9.       this.transition = p_transition;
  10.       this.auxProperties = new Object();
  11.       this.properties = new Object();
  12.       this.isPaused = false;
  13.       this.timePaused = undefined;
  14.       this.isCaller = false;
  15.       this.updatesSkipped = 0;
  16.       this.timesCalled = 0;
  17.       this.skipUpdates = 0;
  18.       this.hasStarted = false;
  19.    }
  20.    function clone(omitEvents)
  21.    {
  22.       var _loc2_ = new caurina.transitions.TweenListObj(this.scope,this.timeStart,this.timeComplete,this.useFrames,this.transition);
  23.       _loc2_.properties = new Object();
  24.       for(var _loc3_ in this.properties)
  25.       {
  26.          _loc2_.properties[_loc3_] = this.properties[_loc3_].clone();
  27.       }
  28.       _loc2_.skipUpdates = this.skipUpdates;
  29.       _loc2_.updatesSkipped = this.updatesSkipped;
  30.       if(!omitEvents)
  31.       {
  32.          _loc2_.onStart = this.onStart;
  33.          _loc2_.onUpdate = this.onUpdate;
  34.          _loc2_.onComplete = this.onComplete;
  35.          _loc2_.onOverwrite = this.onOverwrite;
  36.          _loc2_.onStartParams = this.onStartParams;
  37.          _loc2_.onUpdateParams = this.onUpdateParams;
  38.          _loc2_.onCompleteParams = this.onCompleteParams;
  39.          _loc2_.onOverwriteParams = this.onOverwriteParams;
  40.       }
  41.       _loc2_.rounded = this.rounded;
  42.       _loc2_.isPaused = this.isPaused;
  43.       _loc2_.timePaused = this.timePaused;
  44.       _loc2_.isCaller = this.isCaller;
  45.       _loc2_.count = this.count;
  46.       _loc2_.timesCalled = this.timesCalled;
  47.       _loc2_.waitFrames = this.waitFrames;
  48.       _loc2_.hasStarted = this.hasStarted;
  49.       return _loc2_;
  50.    }
  51.    function toString()
  52.    {
  53.       var _loc2_ = "\n[TweenListObj ";
  54.       _loc2_ += "scope:" + String(this.scope);
  55.       _loc2_ += ", properties:";
  56.       var _loc3_ = true;
  57.       for(var _loc4_ in this.properties)
  58.       {
  59.          if(!_loc3_)
  60.          {
  61.             _loc2_ += ",";
  62.          }
  63.          _loc2_ += "[name:" + this.properties[_loc4_].name;
  64.          _loc2_ += ",valueStart:" + this.properties[_loc4_].valueStart;
  65.          _loc2_ += ",valueComplete:" + this.properties[_loc4_].valueComplete;
  66.          _loc2_ += "]";
  67.          _loc3_ = false;
  68.       }
  69.       _loc2_ += ", timeStart:" + String(this.timeStart);
  70.       _loc2_ += ", timeComplete:" + String(this.timeComplete);
  71.       _loc2_ += ", useFrames:" + String(this.useFrames);
  72.       _loc2_ += ", transition:" + String(this.transition);
  73.       if(this.skipUpdates)
  74.       {
  75.          _loc2_ += ", skipUpdates:" + String(this.skipUpdates);
  76.       }
  77.       if(this.updatesSkipped)
  78.       {
  79.          _loc2_ += ", updatesSkipped:" + String(this.updatesSkipped);
  80.       }
  81.       if(this.onStart)
  82.       {
  83.          _loc2_ += ", onStart:" + String(this.onStart);
  84.       }
  85.       if(this.onUpdate)
  86.       {
  87.          _loc2_ += ", onUpdate:" + String(this.onUpdate);
  88.       }
  89.       if(this.onComplete)
  90.       {
  91.          _loc2_ += ", onComplete:" + String(this.onComplete);
  92.       }
  93.       if(this.onOverwrite)
  94.       {
  95.          _loc2_ += ", onOverwrite:" + String(this.onOverwrite);
  96.       }
  97.       if(this.onStartParams)
  98.       {
  99.          _loc2_ += ", onStartParams:" + String(this.onStartParams);
  100.       }
  101.       if(this.onUpdateParams)
  102.       {
  103.          _loc2_ += ", onUpdateParams:" + String(this.onUpdateParams);
  104.       }
  105.       if(this.onCompleteParams)
  106.       {
  107.          _loc2_ += ", onCompleteParams:" + String(this.onCompleteParams);
  108.       }
  109.       if(this.onOverwriteParams)
  110.       {
  111.          _loc2_ += ", onOverwriteParams:" + String(this.onOverwriteParams);
  112.       }
  113.       if(this.rounded)
  114.       {
  115.          _loc2_ += ", rounded:" + String(this.rounded);
  116.       }
  117.       if(this.isPaused)
  118.       {
  119.          _loc2_ += ", isPaused:" + String(this.isPaused);
  120.       }
  121.       if(this.timePaused)
  122.       {
  123.          _loc2_ += ", timePaused:" + String(this.timePaused);
  124.       }
  125.       if(this.isCaller)
  126.       {
  127.          _loc2_ += ", isCaller:" + String(this.isCaller);
  128.       }
  129.       if(this.count)
  130.       {
  131.          _loc2_ += ", count:" + String(this.count);
  132.       }
  133.       if(this.timesCalled)
  134.       {
  135.          _loc2_ += ", timesCalled:" + String(this.timesCalled);
  136.       }
  137.       if(this.waitFrames)
  138.       {
  139.          _loc2_ += ", waitFrames:" + String(this.waitFrames);
  140.       }
  141.       if(this.hasStarted)
  142.       {
  143.          _loc2_ += ", hasStarted:" + String(this.hasStarted);
  144.       }
  145.       _loc2_ += "]\n";
  146.       return _loc2_;
  147.    }
  148. }
  149.